import aima.core.search.framework.GoalTest;
import aima.core.util.datastructure.XYLocation;


public class RetoAtascoGoalTest implements GoalTest {
	
	//TODO por simplificar lo pongo con XYLocation solo
	//EstadoRetoAtasco goal = new EstadoRetoAtasco(new int[]{0,1,2,3,4,5,6,7,8},0);
	XYLocation goal = new XYLocation(5,3);
	
	public boolean isGoalState(Object state) {
		EstadoRetoAtasco estado = (EstadoRetoAtasco) state;
		return goal.equals(estado.getPosicionOf("R"));
		//return estado.equals(goal);
		
	}
	
}
